package com.vrv.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author vrv
 * @ClassName: EsProp
 * @Desc: TODO
 * @Date: 2024/07/04 16:20
 * @Version: 1.0
 * @Modified By:
 */
@Getter
@ConfigurationProperties(prefix = "es")
@Component
@Setter
@ApiModel("EsProp")
@EqualsAndHashCode
@ToString
public class EsProp implements Serializable {


    @ApiModelProperty("source")
    private Prop source;

    @ApiModelProperty("target")
    private Prop target;


    @ApiModel("Prop")
    @EqualsAndHashCode
    @Data
    @ToString
    public static class Prop implements Serializable{

        @ApiModelProperty("urls")
        private String urls;

        @ApiModelProperty("username")
        private String username;

        @ApiModelProperty("password")
        private String password;

        public String getUrls() {
            return urls;
        }

        public void setUrls(String urls) {
            this.urls = urls;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }
    }
}
